package com.lx.perferred.mall.admin.model;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lX
 * @version JDK 8
 * @className UmsPermission (此处以class为例)
 * @date 2024/11/30
 * @description 用户权限实体类
 */
public class UmsPermission implements Serializable {

  private static final long serialVersionUID = 1L;

  private Long id;

  @ApiModelProperty(value = "父级权限id")
  private Long pid;

  @ApiModelProperty(value = "名称")
  private String name;

  @ApiModelProperty(value = "权限值")
  private String value;

  @ApiModelProperty(value = "图标")
  private String icon;

  @ApiModelProperty(value = "权限类型：0->目录；1->菜单；2->按钮（接口绑定权限）")
  private Integer type;

  @ApiModelProperty(value = "前端资源路径")
  private String uri;

  @ApiModelProperty(value = "启用状态；0->禁用；1->启用")
  private Integer status;

  @ApiModelProperty(value = "创建时间")
  private Date createTime;

  @ApiModelProperty(value = "排序")
  private Integer sort;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Long getPid() {
    return pid;
  }

  public void setPid(Long pid) {
    this.pid = pid;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getValue() {
    return value;
  }

  public void setValue(String value) {
    this.value = value;
  }

  public String getIcon() {
    return icon;
  }

  public void setIcon(String icon) {
    this.icon = icon;
  }

  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public String getUri() {
    return uri;
  }

  public void setUri(String uri) {
    this.uri = uri;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Integer getSort() {
    return sort;
  }

  public void setSort(Integer sort) {
    this.sort = sort;
  }
}
